/* eslint-disable indent */
/**
 * vue插件
 */
// 导入组件
import PageTools from './PageTools'
import UploadExcel from './UploadExcel'
import Depets from './Depets'
import ElDtree from './ElDtree'
// 头像上传
import UploadPhoto from './UploadPhoto'
import Qrcode from './Qrcode'
// 全屏组件
import ScreenFull from './ScreenFull'
// 导入动态切换语言组件
import Lang from './Lang'
// console.log('name:', UploadExcel.name)
// 把需要全局注册的组件放入数组
const components = [PageTools, UploadExcel, Depets, ElDtree, UploadPhoto, Qrcode, ScreenFull, Lang]

const plugins = {
    install(Vue) {
        // 注册全局组件、方法、指令、过滤器
        // Vue.component('PageTools', PageTools)
        components.forEach(cp => {
            Vue.component(cp.name, cp)
        })
    }
}

// eslint-disable-next-line eol-last
export default plugins